﻿using CCS.WebApp.ViewModels.HomePage.Builders;
using CCS.WebApp.ViewModels.HomePage.Builders.Impl;

namespace CCS.WebApp.Controllers
{
    using System.Web.Mvc;

    public class HomeController : Controller
    {
        private readonly IHomePageVmBuilder _homePageBuilder;

        public HomeController()
            : this(new HomePageVmBuilder())
        {
        }

        public HomeController(IHomePageVmBuilder homePageBuilder)
        {
            _homePageBuilder = homePageBuilder;
        }

        public ActionResult Index()
        {
            return View(_homePageBuilder.HomePageVmBuild());
        }
    }
}
